CC = gcc
LIB_PATH = ./mathlib

all: main

main: main.c
	$(CC) main.c -L$(LIB_PATH) -lmath -Wl,-rpath=$(LIB_PATH) -o main

clean:
	rm -f main

